home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 034a / trunclog.zip / TRUNCLOG.DOC next >
Text File  |  1991-01-13  |  1KB  |  36 lines

  1. TRUNCLOG -      Another FrontDoor LOG-file truncator...
  2.  
  3. Written by Erik Wachtmeester in Turbo Pascal (tm) 5.5.
  4.  
  5. Syntax: TRUNCLOG <logfile> <days to keep (max. 255)> [<keepfile>]
  6.  
  7. E.g.: TRUNCLOG C:\FD\FD.LOG 7 C:\FD\HIST\OLD.LOG
  8.  
  9. In this case, TRUNCLOG deletes all entries older than 7 days from your FD.LOG
  10. in the directory C:\FD, and keeps the deleted entries in C:\FD\HIST\OLD.LOG.
  11. The <keepfile> is optional, and in all cases, if no directory is given, the
  12. current directory will be used. If <keepfile> already exists, the new deleted
  13. entries will be appended to it, otherwise a new <keepfile> will be created.
  14.  
  15. TRUNCLOG checks the date by looking for entries like:
  16. "----------  ddd DD mmm YY"
  17. where "ddd" is the dayname (wich will be ignored), and "DD mmm YY" is the date
  18. ("D mmm YY" is also recognised in e.g. "9 jan 91"). The "----------" is
  19. crucial, though...
  20. Programs that use this syntax for their logfiles include FrontDoor, TosScan,
  21. MButil, FileFix, RA, and probably a lot more. Please check this with your own
  22. logfile.
  23.  
  24. TRUNCLOG is a public domain utility. You have got my permission to use (and
  25. alter) the enclosed program and sourcecode to your liking. I do not guarantee
  26. anything beyond the fact that TRUNCLOG uses diskspace, however...
  27.  
  28. If you use and like this utility, I would be obliged if you let me know
  29. (netmail on address 2:283/103.2 or 2:500/109.1867 or 27:4331/109.1)
  30.  
  31. Erik Wachtmeester,
  32. The Netherlands.
  33.  
  34.  
  35.  
  36.